//using Microsoft.VisualBasic;
using System;

//
// *  NHibernate 代码模版
// 

using System.Collections.Generic;

namespace NCS
{
	/// <summary>
	///	
	/// </summary>
	[Serializable()]
	public class standard
	{

		#region "构造方法"
		public standard()
		{
			m_ID = 0;
			m_name = "";
			m_cconc = 0;
			m_sconc = 0;
			m_description = "";

			m_userid = 0;
		}
		#endregion


		#region "私有变量"
		private int m_ID;
		private string m_name;
		private double m_cconc;
		private double m_sconc;
		private string m_description;

		private int m_userid;
		#endregion


		#region "公有属性"

		///<summary>
		///
		///</summary>
		public virtual int ID {
			get { return m_ID; }
			set { m_ID = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string name {
			get { return m_name; }
			set { m_name = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual double cconc {
			get { return m_cconc; }
			set { m_cconc = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual double sconc {
			get { return m_sconc; }
			set { m_sconc = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string description {
			get { return m_description; }
			set { m_description = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int userid {
			get { return m_userid; }
			set { m_userid = value; }
		}

		#endregion

		#region "Rewrite Equals and HashCode"
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if (object.ReferenceEquals(this, obj)) {
				return true;
			}
			if ((obj == null) || (!object.ReferenceEquals(obj.GetType(), GetType()))) {
				return false;
			}
			standard castObj = (standard)obj;
			return (castObj != null) && (m_ID == castObj.ID);
		}
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_ID.GetHashCode();
			return hash;
		}
		#endregion
	}
}
